package com.share.homestay.interfaces;

import com.share.homestay.entity.HostelOrders;
import com.share.homestay.entity.OrderOperationLogs;
import com.share.homestay.pojo.JsonResult;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

public interface HostelOrdersServiceApi {
    @RequestMapping("findAllHostelOrders")
    JsonResult findAllHostelOrders(@RequestBody HostelOrders hostelOrders, @RequestParam(value = "pageNum",defaultValue = "1")Long pageNum, @RequestParam(value = "pageSize",defaultValue = "100")Long pageSize);

    @RequestMapping("findOrderOperationLogs")
    JsonResult findOrderOperationLogs(@RequestParam("id") String id, @RequestParam(value = "pageNum",defaultValue = "1")Long pageNum, @RequestParam(value = "pageSize",defaultValue = "100")Long pageSize);
    @RequestMapping("addOrderOperationLog")
    Long addOrderOperationLog(@RequestBody OrderOperationLogs orderOperationLogs);
}
